package com.gdwhomework.chapter07.homework004;

public class Worker extends Person {
    public Worker(String name, int age, char gender, double sal) {
        super(name, age, gender, sal);
    }

    @Override
    public void showAllYearSal() {
        System.out.print("工人"+getName()+"的全年工资为：");
        super.showAllYearSal();
    }
}

